#include "cputimewin.h"

cpuTimeWin::cpuTimeWin()
{
    QueryPerformanceFrequency (&cou);
    freDouble = cou.QuadPart / 1000.0 ;
}

cpuTimeWin::~cpuTimeWin()
{

}

void cpuTimeWin::start()
{
    QueryPerformanceCounter(&cou);
    beginC = cou.QuadPart;
}

int cpuTimeWin::time()
{
    QueryPerformanceCounter(&cou);
    return (cou.QuadPart - beginC) / freDouble;
}

